package com.data.modules.feign;

import com.data.common.api.vo.CrmResult;
import com.data.common.entity.TaskQiYeWeiXinMsg;
import com.data.modules.dto.SiteRankDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @Description
 * @Date 2022/3/8 17:43
 * @Author funing
 */
@Component
@FeignClient(name = "task", url = "${crm.task-url:}")
public interface TaskService  {

    /**
     * 岗位ID查询此岗位是否已下架
     * @param stationId
     * @return
     */
    @PostMapping({"/taskStationInformation/findStationStatus"})
    CrmResult findStationStatus(Integer stationId);

    @PostMapping("taskLog/companyWeiXinSend")
    CrmResult companyWeiXinSend(@RequestBody TaskQiYeWeiXinMsg taskQiYeWeiXinMsg);

    /**
     * 获取岗位状态
     * @return
     */
    @PostMapping(value = "/taskStationInformation/queryTaskSiteInfo")
    CrmResult<List<SiteRankDto>> queryTaskSiteInfo();

}
